<?php

/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of General
 *
 * @author wupeng
 */

include_once 'ApiAbstract.php';

class General extends ApiAbstract{
    //put your code here
    
    public function __construct($periodStart, $account) {
        parent::__construct($periodStart, $account);
    }

    public function addTransaction() {
        $result = false;
        $fields = $this->getFields();
        if(!empty($fields)){
            $url = $this->_buildUrl('addTransaction');

            $result = $this->_updateMageFinance($url, $this->getFields());
        }
        
        return $result;
    }
}
